class AccountListEntity {
	int code;
	List<AccountListData> data;
	String message;

	AccountListEntity({this.code, this.data, this.message});

	AccountListEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		if (json['data'] != null) {
			data = new List<AccountListData>();(json['data'] as List).forEach((v) { data.add(new AccountListData.fromJson(v)); });
		}
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
		data['message'] = this.message;
		return data;
	}
}

class AccountListData {
	AccountListDataItem item;
	List<AccountListDataBtn> btns;

	AccountListData({this.item, this.btns});

	AccountListData.fromJson(Map<String, dynamic> json) {
		item = json['item'] != null ? new AccountListDataItem.fromJson(json['item']) : null;
		if (json['btns'] != null) {
			btns = new List<AccountListDataBtn>();(json['btns'] as List).forEach((v) { btns.add(new AccountListDataBtn.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.item != null) {
      data['item'] = this.item.toJson();
    }
		if (this.btns != null) {
      data['btns'] =  this.btns.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class AccountListDataItem {
	String area;
	String huabai;
	String role;
	String address;
	String statusCn;
	String sex;
	String pic;
	String deadLine;
	String usetime;
	String grade;
	String limit;
	String platId;
	String id;
	String account;
	String status;

	AccountListDataItem({this.area, this.huabai, this.role, this.address, this.statusCn, this.sex, this.pic, this.deadLine, this.usetime, this.grade, this.limit, this.platId, this.id, this.account, this.status});

	AccountListDataItem.fromJson(Map<String, dynamic> json) {
		area = json['area'];
		huabai = json['huabai'];
		role = json['role'];
		address = json['address'];
		statusCn = json['statusCn'];
		sex = json['sex'];
		pic = json['pic'];
		deadLine = json['dead_line'];
		usetime = json['usetime'];
		grade = json['grade'];
		limit = json['limit'];
		platId = json['plat_id'];
		id = json['id'];
		account = json['account'];
		status = json['status'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['area'] = this.area;
		data['huabai'] = this.huabai;
		data['role'] = this.role;
		data['address'] = this.address;
		data['statusCn'] = this.statusCn;
		data['sex'] = this.sex;
		data['pic'] = this.pic;
		data['dead_line'] = this.deadLine;
		data['usetime'] = this.usetime;
		data['grade'] = this.grade;
		data['limit'] = this.limit;
		data['plat_id'] = this.platId;
		data['id'] = this.id;
		data['account'] = this.account;
		data['status'] = this.status;
		return data;
	}
}

class AccountListDataBtn {
	String color;
	String action;
	String text;

	AccountListDataBtn({this.color, this.action, this.text});

	AccountListDataBtn.fromJson(Map<String, dynamic> json) {
		color = json['color'];
		action = json['action'];
		text = json['text'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['color'] = this.color;
		data['action'] = this.action;
		data['text'] = this.text;
		return data;
	}
}
